<?php

namespace App\Models;

use Dcat\Admin\Traits\HasDateTimeFormatter;

use Illuminate\Database\Eloquent\Model;

class VoteOptions extends Model
{

    use HasDateTimeFormatter;

    protected $table = 'vote_options';

    /**
     * 投票ID
     *
     * @return \Illuminate\Database\Eloquent\Relations\BelongsTo
     */
    public function vote()
    {
        return $this->belongsTo( 'App\Models\Vote', 'vote_id', 'vote_id' );
    }

}
